<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>404错误页面</title>

<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">

<link rel="stylesheet" type="text/css" href="assets/fonts/line-icons.css">

<link rel="stylesheet" type="text/css" href="assets/css/main.css">

<link rel="stylesheet" type="text/css" href="assets/css/responsive.css">

<script src="assets/js/jquery-min.js"></script>

</head>
<body>
<input type="text" name="user" th:if="${session.userEntity == null}" value="1" hidden />
<input type="text" name="user" th:if="${session.userEntity != null}" value="2" hidden />

<script type="text/javascript">
    $(function () {
        if ($("input[name='user']").val() == 1){
            window.open("/admin/login","_self");
        } else {
            window.open("/com/index","_self");
        }
    });
</script>
</body>
</html>